/**
 * 
 */
package com.javacore;

/**
 * @author Chung
 * @date - 7:12:52 PM Jul 23, 2013
 * @filename Exercise1.java
 */
public class Exercise1 {
	private String Ma = "";
	private String Ten = "";
	private String NgayVaoLam = "";
	private float Luong = 0.0f;

	public void DataEntry(String S1, String S2, String S3, float l) {
		Ma = S1;
		Ten = S2;
		NgayVaoLam = S3;
		Luong = l;
	}

	public void OutData() {
		System.out.println(Ma + ",\t " + Ten + ",\t " + NgayVaoLam + ",\t "
				+ Luong);
		System.out.println("");
	}

	public static void main(String[] args) {
		System.out.println("Ma,\tTen,\t\tNgay Vao Lam,\tLuong");
		System.out.println("");
		Exercise1 nv1 = new Exercise1();
		Exercise1 nv2 = new Exercise1();
		Exercise1 nv3 = new Exercise1();

		nv1.DataEntry("NV001", "ChungND", "10/10/2010", 1000000);
		nv2.DataEntry("NV002", "AnhPT  ", "11/11/2011", 1000000);
		nv3.DataEntry("NV003", "ManhDB ", "12/12/2012", 1000000);

		nv1.OutData();
		nv2.OutData();
		nv3.OutData();
	}
}
